package br.com.teste1;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class Teste1Servlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException, IOException {
		String VarNome = "Pi";
		req.setAttribute("ValorServlet", VarNome);
		RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/tela.jsp");
		try {
			dispatcher.forward(req, resp);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
